<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<title>后台管理系统</title>
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport"
		content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
	<link rel="stylesheet" href="./static/css/font.css">
	<link rel="stylesheet" href="./static/css/weadmin.css">
	<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
	<style>
		[v-cloak]{
			display:none
		}
	</style>
</head>

<body > 
	<div id="app">
		<!-- 顶部开始 -->
	<div class="container" >
		<div class="logo">
			<a href="./index.html">简历管理后台</a>
		</div>
		<div class="left_open">
			<i title="展开左侧栏" class="layui-icon layui-icon-shrink-right"></i>

		</div>
		<ul class="layui-nav right" lay-filter="">
			<li class="layui-nav-item">
				<a href="javascript:;" v-cloak>{{ userName }}</a>
				<dl class="layui-nav-child">
					<!-- 二级菜单 -->
					<dd>
						<a onclick="WeAdminShow('个人信息','http://www.baidu.com')">个人信息</a>
					</dd>
					<dd>
						<a onclick="WeAdminShow('切换帐号','./login.html')">切换帐号</a>
					</dd>
					<dd>
						<a class="loginout" href="./login.html">退出</a>
					</dd>
				</dl>
			</li>
		</ul>

	</div>
	<!-- 顶部结束 -->
	<!-- 中部开始 -->
	<!-- 左侧菜单开始 -->
	<div class="left-nav">
		<div id="side-nav">
			<ul id="nav">
				<li>
					<a _href="./home/index.html">
						<i class="iconfont">&#xe705;</i>
						<cite>首页</cite>
						<i class="iconfont nav_right">&#xe697;</i>
					</a>
				</li>
				<li>
					<a href="javascript:;">
						<i class="iconfont">&#xe6b8;</i>
						<cite>人员管理</cite>
						<i class="iconfont nav_right">&#xe697;</i>
					</a>
					<ul class="sub-menu">
						<li>
							<a _href="./page/user.html">
								<i class="iconfont">&#xe6a7;</i>
								<cite>人员列表</cite>
							</a>
						</li>
					</ul>
				</li>
				<li>
					<a href="javascript:;">
						<i class="iconfont">&#xe723;</i>
						<cite>审批</cite>
						<i class="iconfont nav_right">&#xe697;</i>
					</a>
					<ul class="sub-menu">
						<li>
							<a _href="./page/approval.html">
								<i class="iconfont">&#xe6a7;</i>
								<cite>待审批列表</cite>
							</a>
						</li>
					</ul>
					<ul class="sub-menu">
						<li>
							<a _href="./resumeQuery.html">
								<i class="iconfont">&#xe6a7;</i>
								<cite>简历查询</cite>
							</a>
						</li>
					</ul>
				</li>
				<li>
					<a href="javascript:;">
						<i class="iconfont">&#xe726;</i>
						<cite>管理员查询</cite>
						<i class="iconfont nav_right">&#xe697;</i>
					</a>
					<ul class="sub-menu">
						
						<li>
							<a _href="./page/log.html">
								<i class="iconfont">&#xe6a7;</i>
								<cite>日志概况</cite>
							</a>
						</li>
					
						<li>
							<a _href="./page/resume.html">
								<i class="iconfont">&#xe6a7;</i>
								<cite>简历概况</cite>
							</a>
						</li>
						<li>
							<a _href="./page/todo.html">
								<i class="iconfont">&#xe6a7;</i>
								<cite>待办事项</cite>
							</a>
						</li>
						<li>
							<a _href="./page/statistics.html">
								<i class="iconfont">&#xe6a7;</i>
								<cite>数据统计</cite>
							</a>
						</li>		
					</ul>
				</li>
			</ul>
		</div>
	</div>
	<!-- <div class="x-slide_left"></div> -->
	<!-- 左侧菜单结束 -->
	<!-- 右侧主体开始 -->
	<div class="page-content">
		<div class="layui-tab tab" lay-filter="wenav_tab" id="WeTabTip" lay-allowclose="true">
			<ul class="layui-tab-title" id="tabName">
				<li>首页</li>
			</ul>
			<div class="layui-tab-content">
				<div class="layui-tab-item layui-show">
					<iframe src='welcome.html' frameborder="0" scrolling="yes" class="weIframe"></iframe>
				</div>
			</div>
		</div>
	</div>
	<div id="app"> {{username}}</div>
	</div>
	
	<script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
	<script src="./static/js/admin.js" type="text/javascript" charset="utf-8"></script>

</body>
<!--Tab菜单右键弹出菜单-->
<ul class="rightMenu" id="rightMenu">
	<li data-type="fresh">刷新</li>
	<li data-type="current">关闭当前</li>
	<li data-type="other">关闭其它</li>
	<li data-type="all">关闭所有</li>
</ul>
<script>
	new Vue({
		el: '#app',
		data: {
			userName: localStorage.userName
		},
		mounted:function(){
			// getInfo()
		}
    })
	


	function getInfo() {
		console.log(localStorage.token)
		console.log(localStorage.userName)
		console.log(localStorage.userId)
		console.log(localStorage.identity)
		console.log(localStorage.state)

		// $(function() {
		// 	$.ajax({
		// 		type: "POST",
		// 		url: "http:localhost:9000/user/query",
		// 		contentType: "application/json; charset=utf-8",
		// 		data: JSON.stringify({"userName": username, "password":password}),
		// 		dataType: "json",
		// 		success: function (e) {
		// 			console.log(e)
		// 			if (e.flag) {
		// 				//localStorage 可以跨同浏览器窗口
		// 				localStorage.token = e.data;
		// 				console.log(localStorage.token)
		// 				window.location.href="./index.html"; 
		// 			} else {
		// 				alert("账号或密码错误")
		// 			}
		// 		},
		// 		error: function (message) {
		// 			alert("账号或密码错误")
		// 		}
		// 	});
		// });	
	}
</script>
</html>

